<?php
$obj=new mysql($config);


$pid=$_GET['cid'];
// 加载左边栏目
$sql="select * from `cate` where `pid`=$pid";
$date=$obj->getCondition($sql);

$ids=array();	
foreach ($date as $k => $v) {
		$ids[]=$v['id'];
}


$ids=implode(',',$ids);

$sid=!empty($_GET['id'])?$_GET['id']:$pid;
$sql="select * from `cate` where `id`=$sid";
$title=$obj->getOne($sql);

$id=!empty($_GET['id'])?$_GET['id']:$ids;
$sql="select * from `news` where `cid` in ($id)";

$dates=$obj->getCondition($sql);








require_once VIEW_PATH.'home/layout.html';
